package com.example.boke.service;

import com.example.boke.mapper.BlogMapper;
import com.example.boke.model.BlogInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogService {
@Autowired
    BlogMapper blogMapper;
    public List<BlogInfo> getList() {
       return blogMapper.selectAll();
    }

    public BlogInfo getBlogDetail(Integer blogId) {
        return blogMapper.selectById(blogId);
    }
}
